
const state = {
  compared: [],
  type: 2
}

const mutations = {
  SAVE_ID: (state, info) => {
    state.compared = info.id
    state.type = info.num
  },
  DELETE_ID: state => {
    state.compared = []
    state.type = 2
  }
}

export default {
  namespaced: true,
  state,
  mutations,
}
